package entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 原材料订单表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "原材料订单表")
public class MaterialOrder implements Serializable {

    @Schema(description = "订单ID（主键）")
    private Integer orderId;

    @Schema(description = "供应商逻辑外键")
    private Integer supplierId;

    @Schema(description = "原材料名称")
    private String materialName;

    @Schema(description = "原材料数量")
    private String materialCount;

    @Schema(description = "订单状态")
    private String orderStatus;

    @Schema(description = "原材料批次号")
    private String materialBatchId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;
}